define(["jquery","bbcare",
	"as/app/mabc/mabcDetailInfo.servers",
	"as/app/mabc/mabcDetailInfo.ui",
	"as/app/mabc/mabcDetailInfo.event",
	"as/app/mabc/mabcDetail.servers",
	"as/app/mabc/mabcDetail.event",
],
	function($,$bb,$servers,$ui,$event,$listServer, $listEvent){
	var mabcDetailInfo = {};
	mabcDetailInfo.init = function(){
		var info = $servers.getPageParams().params;
		//初始化列表参数：
		var inParams = {
			userId:info.userId,
			type:info.type
		};
		$servers.getBaseInfo(inParams,$event.mabcBaseInfo,info);
		//初始化列表参数：

		$servers.answerList(info,$event.getMabcQuestionList,info);
		$event.init(info);
		/**
		 * 获取基本信息添加到头部
		 */
		var ageState=info.ageState;
		var busiId="";
		if(ageState=="0"){
			busiId="mabc00001";
		} else if(ageState=="1"){
			busiId="mabc500001";
		} else if(ageState=="2"){
			busiId="mabc600001";
		} else if (ageState == "3") {
			busiId="mabc700001";
		}
		var inParams = {
			userId:info.userId,
			busiId:busiId,
			ageState:info.ageState
		};
		info.notRendList = true
		$listServer.mabcQuestionList(inParams, $listEvent.mabcQuestionList, info)

	};

	return mabcDetailInfo;
});